<?php

include_once 'app.widgets/TRelatorio.class.php';

$pdf = new TRelatorio();


$html = '<style>

#solicitacao
{
    border: 0;
    max-width: 210mm;
    padding: 10mm 20mm;
}

div.ln1,
div.ln2
{
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-right: 1px solid;
    float: left;
    padding: 3px;
}

.ln1:first-child,
.ln2:first-child
{
    border: 1px solid;
    background:yellow;
}

div p{
    margin: 0;
}
div.ln1{
    width: 32%;
}

div.ln2{
    width: 49%;
}

table{
    border-collapse: collapse;
    width: 100%;
}

th,td,li{
    border: 1px solid;
}

th.ln1,th.ln2
{
    display: block;
}

ul{
    margin: 0;
    padding: 0;   
    list-style: none; 
}
</style>
<div id="solicitacao">
    <img src="app.misc/images/cabecalho.png"/>
    <div id="curso" class="ln1"><p>CURSO: </p></div>
    <div id="fase" class="ln1"><p>FASE: </p></div>
    <div id="sem" class="ln1"><p>SEM: </p></div>
    <div id="professor" class="ln2"><p>PROFESSOR: </p></div>
    <div id="disciplina" class="ln2"><p>DISCIPLINA: </p></div>
    <table>
        <thead>
            <tr>
                <th rowspan="2">ITEM</th>
                <th>QTDA/UNID</th>
                <th rowspan="2">DESCRIÇÃO/ESPECIFICAÇÃO</th>
                <th colspan="2">DATA</th>
            </tr>
            <tr>
                <th>SOLICITADA</th>
                <th>SOLICITAÇÃO</th>
                <th>RECEBIMENTO</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
            <tr>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
                <td>|</td>
            </tr>
        </tbody>
    </table>
    <div>
        <ul>
            <li>Sugestões de compra:</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
            <li>|</li>
        </ul>
    </div>
    <div>
        <ul>
            <li>Prazo de Entrega:</li>
            <li>|</li>
        </ul>
    </div>
<img src="app.misc/images/assinaturas.png" />            
</div>';

$pdf->pdf->WriteHTML($html);

$pdf->pdf->Output('solicitacao '.date('d m Y').'.pdf','D');

//echo $html;

?>
​